package ooday02;

public class Teacher1 extends Person1 {


    double salray;
    Teacher1(){
    }
    Teacher1(String name,int age,String address,double salray){
       super(name,age,address);
        this.salray=salray;

    }
    void teach(){
        System.out.println(name+"正在讲课...");
    }
    void sayhi(){
        System.out.println("大家好我叫"+name+"今年"+age+"岁了"+"家住在"+address+"工资为："+salray);
    }


}
